from flask import Blueprint, render_template
from flask_login import login_required
from user.role_check import check_role

architecture = Blueprint('architecture', __name__)


@architecture.route('/data_collect')
@check_role('1.1')
@login_required
def data_collect():
    return render_template('data_architecture/data_collect.html')


@architecture.route('/data_store')
@check_role('1.2')
@login_required
def data_store():
    return render_template('data_architecture/data_store.html')
